Skip to content

feat(rn): 修复蓝牙相关 api 表现#2435

Open
dos1in wants to merge 12 commits intodidi:masterfrom
dos1in:fix/bluetooth-msg
Open

feat(rn): 修复蓝牙相关 api 表现#2435
dos1in wants to merge 12 commits intodidi:masterfrom
dos1in:fix/bluetooth-msg

Conversation

@dos1in
Copy link
Member

@dos1in dos1in commented Mar 10, 2026

  1. 完善错误日志输出内容
  2. 鸿蒙下 writeBLECharacteristicValue 需要调用 write 而不是 writeNoResponse
  3. 规范回调行为
API on 支持回调数量 off 取消回调行为
BluetoothDeviceFound 1 个(重复添加会被覆盖) 无参,清空唯一回调
BLECharacteristicValueChange 1 个(重复添加会被覆盖) 无参,清空唯一回调
BluetoothAdapterStateChange 多个 不传参则清空全部;传 callback 则只移除该回调
BLEConnectionStateChange 多个 不传参则清空全部;传 callback 则只移除该回调

@dos1in dos1in marked this pull request as draft March 12, 2026 12:29
@dos1in dos1in marked this pull request as ready for review March 13, 2026 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant